Skip to content

Conversation

amirgo1
Copy link

@amirgo1 amirgo1 commented Jul 17, 2025

This PR updates the table_id assignment logic in the google_bigquery_table.view and google_bigquery_table.materialized_view to fix provisioning order issues when views depend on existing base tables.

This helps avoid errors like "Table not found" during apply, which were caused by views being created before their underlying tables:

Error: googleapi: Error 404: Not found: Table <project>:<dataset>.<table> was not found in location <region>, notFound

  with module.<module-name>[0].google_bigquery_table.view["<table>_view"],
  on .terraform/modules/<module-name>/terraform-google-modules/bigquery/google/main.tf line 103, in resource "google_bigquery_table" "view":
 103: resource "google_bigquery_table" "view" {

Thanks to @EliSzBr for the help!

@amirgo1 amirgo1 requested review from ayushmjain, bradmiro, davenportjw, q2w and a team as code owners July 17, 2025 06:25
@amirgo1
Copy link
Author

amirgo1 commented Jul 17, 2025

@ayushmjain would appreciate it if you could have a look 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant